﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

using UserNotificationAspMvc.Models;
using System.Text;


namespace UserNotificationAspMvc.Controllers
{
    public class HomeController : Controller
    {


        public ActionResult Index()
        {
            ImageList list = new ImageList(HttpContext);
            List<Image> batch = list.GetNextPage(0);
            return View(batch);
        }


        [HttpPost]
        public string GetNextImages(int id)
        {            
            ImageList list = new ImageList(HttpContext);
            return list.GetNextPageStrings((ushort)id);
        }


        public ActionResult About()
        {
            return View();
        }
    }
}
